<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*,com.util.*" errorPage="/error.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<SCRIPT language=JavaScript src="/js/validator.js" type=text/javascript></SCRIPT>
<script language="javascript" src="/js/Address.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>注册</title>
<style type="text/css">
<!--

input,select {margin:0; padding:0; text-align:left; font-family:Arial, Helvetica, sans-serif; margin-left:1px; font-size:10pt;}
.inp{border:1px solid #84a1bd; width:157px; padding:2px 2px 2px 2px ;margin-right:10px}
.inp2{ border:1px solid #84a1bd; padding:2px 2px 2px 2px ; background-position: -70px -424px}
-->
</style>
</head>

<body style="BACKGROUND：#ffffff;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px; COLOR: #000000; PADDING-bottom: 30px; FONT-FAMILY: Tahoma, Arial;
font-size:9pt;text-align:left">
<div id=nameTip>
  <table align="center">
<form action="/reg" method="post" enctype="multipart/form-data" name="infoForm" id=" infoForm" onSubmit="return Validator.Validate(this,3)">
   <tr><td>用户名：</td><td>
    <input name="username" type="text" id="username"  onBlur="checkUserName()" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"    onMouseOut="this.style.borderColor='#84a1bd'" dataType="Username" msg="用户名不符合规定"/>
    <span class="font-red">*&nbsp; </span>不少于三个字符，且应以字母开头</td></tr>
	<tr>
	<td>
   密&nbsp;&nbsp;码：</td><td>
			  <input name="password" type="password"  onBlur="checkPasswd()" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" dataType="SafeString"   msg="密码不符合安全规则">		
			 <span class="font-red">*&nbsp; </span>密码至少由6个英文字母、数字或符号混合而成
			  </td></tr>
			  <tr><td>

			重复密码：</td><td>
			  <input name="RePassword"  onBlur="checkRePasswd()" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"       type="password"    
            onMouseOut="this.style.borderColor='#84a1bd'" dataType="Repeat" to="Password" msg="两次输入的密码不一致" require="true"> <span class="font-red">*&nbsp; </span></td></tr>
<tr><td>昵称:</td>
   <td>
    <input name="nickname" type="text" id="nickname"  class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" dataType="Require" msg="昵称需要填写" /> <span class="font-red">*&nbsp;</span></td>
	</tr>
			<tr><td>       
  E－mail:</td><td>
   
    <input name="email" type="text" id="email"   onBlur="checkEmail()" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"       onMouseOut="this.style.borderColor='#84a1bd'" dataType="Email" msg="信箱格式不正确" />
    
    <span class="font-red">*&nbsp;</span>用于取回密码及其它服务</td></tr>
	<tr><td>
  性别：
    </td><td>
	<label>
    <input type="radio" name="sex" value="男"  checked="checked" onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" require="false"/>
    </label>
    <label>
    男
    <input type="radio" name="sex" value="女"   onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" require="false"/>
    </label>
  女</td></tr>
  <tr><td>
  生日：</td><td>
    <label>
    <input type="text" name="birthday" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" require="false" dataType="Date" format="ymd" msg="生日日期不存在"/>请按照yyyy-MM-dd的格式来填写</label></td></tr>
			<tr><td>
  提示问题：</td><td>
    <label>
    <input name="ask" type="text" id="ask"  class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" require="false"/>如：妈妈的名字？    </label></td></tr>
	<tr><td>
   答案：</td><td>
    <label>
    <input name="answer" type="text" id="answer" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" require="false"/>
    </label></td></tr>
	<tr>
    <td>QQ：</td><td>
    <label>
    <input name="qq" type="text" id="qq" class="inp"  require="false" dataType="QQ" msg="QQ号码不存在" onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'"/>
    </label></td></tr>
	<tr><td>
  MSN：</td><td>
    <label>
    <input name="msn" type="text" id="msn" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'"/>
    </label>(若有)</td></tr>
	<tr><td>
固定电话：</td><td>
    <label>
    <input name="telephone" type="text" id="telephone" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'"  require="false" dataType="Phone" msg="电话号码不正确"/>
    </label></td></tr>
	<tr><td>

手机：</td><td>
    <label>
    <input name="mobile" type="text" id="mobile" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" require="false" dataType="Mobile" msg="手机号码不正确"/>
    </label></td></tr>
	<tr><td >
 城市：</td><td>
    <label>
	<select name="Province" onchange="changecity()"  class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'">
    <OPTION value="" selected>==选择所在省份==</OPTION>
                          <OPTION value="安徽">安徽</OPTION>
                          <OPTION value="北京">北京</OPTION>
                          <OPTION value="重庆">重庆</OPTION>
                          <OPTION value="福建">福建</OPTION>
                          <OPTION value="甘肃">甘肃</OPTION>
                          <OPTION value="广东">广东</OPTION>
                          <OPTION value="广西">广西</OPTION>
                          <OPTION value="贵州">贵州</OPTION>
                          <OPTION value="海南">海南</OPTION>
                          <OPTION value="河北">河北</OPTION>
                          <OPTION value="黑龙江">黑龙江</OPTION>
                          <OPTION value="河南">河南</OPTION>
                          <OPTION value="浙江">浙江</OPTION>
                          <OPTION value="湖北">湖北</OPTION>
                          <OPTION value="湖南">湖南</OPTION>
                          <OPTION value="内蒙古">内蒙古</OPTION>
                          <OPTION value="江苏">江苏</OPTION>
                          <OPTION value="江西">江西</OPTION>
                          <OPTION value="吉林">吉林</OPTION>
                          <OPTION value="辽宁">辽宁</OPTION>
                          <OPTION value="宁夏">宁夏</OPTION>
                          <OPTION value="青海">青海</OPTION>
                          <OPTION value="山西">山西</OPTION>
                          <OPTION value="陕西">陕西</OPTION>
                          <OPTION value="山东">山东</OPTION>
                          <OPTION value="上海">上海</OPTION>
                          <OPTION value="四川">四川</OPTION>
                          <OPTION value="天津">天津</OPTION>
                          <OPTION value="西藏">西藏</OPTION>
                          <OPTION value="新疆">新疆</OPTION>
                          <OPTION value="云南">云南</OPTION>
                          <OPTION value="香港">香港</OPTION>
                          <OPTION value="澳门">澳门</OPTION>
                          <OPTION value="台湾">台湾</OPTION>
    </SELECT>
        <SELECT name="City"  class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'">
                        <OPTION  selected>==所在城市==</OPTION>
    </SELECT>
    </label>
	</td></tr>
	<tr><td>
	
   详细地址：</td><td>
    <label>
    <input name="address" type="text" id="address" class="inp"  require="false" onMouseOver="this.style.borderColor='#9ecc00'"
	      onMouseOut="this.style.borderColor='#84a1bd'" dataType="Limit" max="30"  msg="必须在30个字之内"/>
    </label>
</td></tr>
	<tr><td>
	
  主页：</td><td>
    <label>
    <input name="homepage" type="text" id="homepage" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'"  require="false" dataType="Url"   msg="非法的Url"/>
    </label>
 </td></tr>
 <tr>
   <td>
	
  兴趣爱好：</td>
   <td>
    <label>
    <input name="userlove" type="text"  class="inp" id="userLove"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'"  require="false"/>
    &nbsp;用于发现志趣相投的朋友哦~    </label> </td></tr>
 <tr>
   <td>
	
  个人介绍：</td>
   <td>
    <label>
    <input name="userintro" type="text"  class="inp" id="userIntro"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'"  require="false"/>
    </label> </td></tr>
 <tr>
   <td>
	
  上传照片：</td>
   <td>
    <label>
    <input type="file" name="file" class="inp2" id="userIntro"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'"  require="false" dataType="Filter" msg="非法的文件格式"  accept="jpg, gif, png"/>
    </label>    </td>
 </tr>
<tr>
   <td>
	
  是否隐藏我的信息：</td>
   <td>
    <label></label>    <input name="ishide" class="inp2" id="userIntro"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" type="checkbox" id="ishide" value="1" />
    （不填为否)</td>
 </tr>
  <tr><td>
博客的名称：</td><td>
    <label>
    <input name="blogname" type="text" id="blogname" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'" dataType="Require"  msg="博客名称不能为空"
			/><span class="font-red">*&nbsp; </span>    </label>
 </td></tr>
 <tr><td>博客的幅标题：</td><td>
    <label>
    <input name="blogmemo" type="text" id="blogmemo" maxlength="40" class="inp"  onMouseOver="this.style.borderColor='#9ecc00'"           
            onMouseOut="this.style.borderColor='#84a1bd'"    dataType="Require"  msg="主题不能为空"
			/><span class="font-red">*&nbsp; </span>    </label>
 </td></tr>
 <tr><td>博客的公告：</td><td>
    <label> 
    <textarea name="gonggao" cols="50" rows="6" id="gonggao" class="inp2"    require="false"   dataType="Limit" max="100"  msg="公告必须在100个字之内"></textarea>
    </label>
</td></tr>
<tr><td colspan="2" align="center">
<input name="from" type="hidden" value="admin"/>
   <input name="Submit" type="submit" value="提交"/></td></tr>
</form>
</table>
<div>
</body>
</html>
